<?php
namespace Home\Controller;
use Think\Controller;
class BaseController extends Controller
{
	/**
	 * 详情方法
	 */
		protected function detail($model)
		{
			$map['id'] = $id = I('get.id');
/*			dump($id);
			exit;*/
			if($id!=false){
				$model = M($model);
				$res = $model->where($map)->find();
				/*dump($res);
				exit;*/
				if($res == false){
					$this->display('404');
				}
				return $res;
			}else{
				$this->display('404');
			}
		}
	}